

# BROKER_URL = 'redis://:wang123@localhost:6379/3'
# CELERY_RESULT_BACKEND = 'redis://:wang123@localhost:6379/4'
# CELERY_IMPORTS = (
#     'common.send_sms_code'
# )

#broker(消息中间件来接收和发送任务消息)
BROKER_URL = 'redis://:wang123@localhost:6379/3'
#backend(存储worker执行的结果)
CELERY_RESULT_BACKEND = 'redis://:wang123@localhost:6379/4'
#设置时间参照，不设置默认使用的UTC时间
CELERY_TIMEZONE = 'Asia/Shanghai'

# 异步工作的任务函数
CELERY_IMPORTS = (
    'common.send_sms_code'
)